import { defineComponent as l, openBlock as a, createElementBlock as _, ref as v, resolveDirective as x, createTextVNode as m, toDisplayString as p, withDirectives as y, createElementVNode as u, vModelText as $ } from "vue";
const g = /* @__PURE__ */ l({
  name: "Cmp1"
});
const d = (e, o) => {
  const c = e.__vccOpts || e;
  for (const [n, s] of o)
    c[n] = s;
  return c;
}, h = { class: "cmp1" };
function k(e, o, c, n, s, t) {
  return a(), _("div", h, "这是组件1");
}
const F = /* @__PURE__ */ d(g, [["render", k], ["__scopeId", "data-v-dd7aa006"]]), r = (e) => (e.install = function(o) {
  o.component(e.name, e);
}, e), S = r(F), b = /* @__PURE__ */ l({
  name: "Cmp2"
});
const E = { class: "cmp2" };
function V(e, o, c, n, s, t) {
  return a(), _("div", E, "这是组件2");
}
const D = /* @__PURE__ */ d(b, [["render", V], ["__scopeId", "data-v-c72e85df"]]), M = r(D), H = { class: "cmp3" }, I = l({
  name: "Cmp3"
}), T = /* @__PURE__ */ l({
  ...I,
  props: {
    test: {
      type: String,
      default: "test"
    }
  },
  setup(e) {
    console.log(e.test);
    const c = () => {
      t.value = "changedValue", alert("change value");
    }, n = v("copy"), s = () => {
      n.value = "copied", setTimeout(() => {
        n.value = "copy";
      }, 5e3);
    }, t = v("defaultValue");
    return (B, i) => {
      const f = x("myCopy");
      return a(), _("div", H, [
        m("这是组件3 value:" + p(t.value) + " ", 1),
        y(u("input", {
          style: { display: "block" },
          "onUpdate:modelValue": i[0] || (i[0] = (C) => t.value = C)
        }, null, 512), [
          [$, t.value]
        ]),
        y((a(), _("button", {
          style: { margin: "20px 0" },
          onClick: s,
          key: t.value
        }, [
          m(p(n.value), 1)
        ])), [
          [f, t.value]
        ]),
        u("button", {
          style: { display: "block", margin: "20px 0" },
          onClick: c
        }, " changeValue"),
        u("div", null, "props test :" + p(e.test), 1)
      ]);
    };
  }
});
const w = /* @__PURE__ */ d(T, [["__scopeId", "data-v-4e49616b"]]), O = r(w);
export {
  S as HCmp1,
  M as HCmp2,
  O as HCmp3
};
//# sourceMappingURL=modules.mjs.map
